<template>
    <tn-loadmore v-if="props.show" :status="props.status" :text="customLoadMoreText" loading-icon-mode="flower"
        color="#388095" />
</template>

<script setup lang="ts">
import TnLoadmore from '@tuniao/tnui-vue3-uniapp/components/loadmore/src/loadmore.vue'
import type { LoadmoreText } from '@tuniao/tnui-vue3-uniapp'

interface LoadType {
    status: string | any,
    show: boolean
}

const props = withDefaults(defineProps<LoadType>(), {
    status: 'loadmore',
    show: false
})

const customLoadMoreText: LoadmoreText = {
    loadmore: '到底了哦',
    loading: '等等，数据正在赶来',
    nomore: '哎呀，没有啦',
    empty: '空空的呀',
}
</script>
<style lang="scss" scoped>
.main {}
</style>